package com.bjpowernode.mappers;

import com.bjpowernode.annotations.DataScope;
import com.bjpowernode.entities.TUser;
import com.bjpowernode.querys.BaseQuery;

import java.util.List;

//@Mapper
public interface TUserMapper {
    TUser selectByLoginAct(String loginAct);

    TUser selectById(Integer id);

    @DataScope(tableAlias = "tu", columnName = "id")
    List<TUser> selectByPage(BaseQuery baseQuery);

    List<TUser> selectOwners();

    int insert(TUser record);

    int updateById(TUser record);

    int deleteById(Integer id);

    int batchDeleteByIds(List<String> idList);
}